package com.hongyuan.sellfitness.ui.person.beans;

public class PersonBean {

    /**
     * info : {"m_name":"嗯哼","m_mobile":"18183185173","m_id":3,"mi_head":"http://hongyuangood.oss-cn-hangzhou.aliyuncs.com/uplaod/image/20200914/2d2c23114ca06d5765d00175d693b67ec6978c5b_713x654.jpeg","mi_sex":1,"pid":41,"cid":4101,"mi_sign":"天下无妖","mi_birth":631296000,"mi_face":"http://hongyuangood.oss-cn-hangzhou.aliyuncs.com/uplaod/image/20200101/d0c780bd2265aaad42ad8c3f7ff07109821e90a0_1440x1920.png","mi_point":910,"mi_realname":"陈道明","mi_money":"0.00","birth":"1990-01-03","area":"广西南宁市","card_count":1,"fans_num":2,"gz_num":6,"circle_num":2,"weight":"35.00","weight_date":"2020-09-16 15:02:11","exercise_days":0,"calories":0,"is_index_name":0}
     */

    private InfoBean info;

    public InfoBean getInfo() {
        return info;
    }

    public void setInfo(InfoBean info) {
        this.info = info;
    }

    public static class InfoBean {
        /**
         * m_name : 嗯哼
         * m_mobile : 18183185173
         * m_id : 3
         * mi_head : http://hongyuangood.oss-cn-hangzhou.aliyuncs.com/uplaod/image/20200914/2d2c23114ca06d5765d00175d693b67ec6978c5b_713x654.jpeg
         * mi_sex : 1
         * pid : 41
         * cid : 4101
         * mi_sign : 天下无妖
         * mi_birth : 631296000
         * mi_face : http://hongyuangood.oss-cn-hangzhou.aliyuncs.com/uplaod/image/20200101/d0c780bd2265aaad42ad8c3f7ff07109821e90a0_1440x1920.png
         * mi_point : 910
         * mi_realname : 陈道明
         * mi_money : 0.00
         * birth : 1990-01-03
         * area : 广西南宁市
         * card_count : 1
         * fans_num : 2
         * gz_num : 6
         * circle_num : 2
         * weight : 35.00
         * weight_date : 2020-09-16 15:02:11
         * exercise_days : 0
         * calories : 0
         * is_index_name : 0
         */

        private String m_name;
        private String m_mobile;
        private int m_id;
        private String mi_head;
        private int mi_sex;
        private int pid;
        private int cid;
        private String mi_sign;
        private int mi_birth;
        private String mi_face;
        private int mi_point;
        private String mi_realname;
        private String mi_money;
        private String birth;
        private String area;
        private int card_count;
        private int fans_num;
        private int gz_num;
        private int circle_num;
        private String weight;
        private String weight_date;
        private int exercise_days;
        private int calories;
        private int is_index_name;

        public String getM_name() {
            return m_name;
        }

        public void setM_name(String m_name) {
            this.m_name = m_name;
        }

        public String getM_mobile() {
            return m_mobile;
        }

        public void setM_mobile(String m_mobile) {
            this.m_mobile = m_mobile;
        }

        public int getM_id() {
            return m_id;
        }

        public void setM_id(int m_id) {
            this.m_id = m_id;
        }

        public String getMi_head() {
            return mi_head;
        }

        public void setMi_head(String mi_head) {
            this.mi_head = mi_head;
        }

        public int getMi_sex() {
            return mi_sex;
        }

        public void setMi_sex(int mi_sex) {
            this.mi_sex = mi_sex;
        }

        public int getPid() {
            return pid;
        }

        public void setPid(int pid) {
            this.pid = pid;
        }

        public int getCid() {
            return cid;
        }

        public void setCid(int cid) {
            this.cid = cid;
        }

        public String getMi_sign() {
            return mi_sign;
        }

        public void setMi_sign(String mi_sign) {
            this.mi_sign = mi_sign;
        }

        public int getMi_birth() {
            return mi_birth;
        }

        public void setMi_birth(int mi_birth) {
            this.mi_birth = mi_birth;
        }

        public String getMi_face() {
            return mi_face;
        }

        public void setMi_face(String mi_face) {
            this.mi_face = mi_face;
        }

        public int getMi_point() {
            return mi_point;
        }

        public void setMi_point(int mi_point) {
            this.mi_point = mi_point;
        }

        public String getMi_realname() {
            return mi_realname;
        }

        public void setMi_realname(String mi_realname) {
            this.mi_realname = mi_realname;
        }

        public String getMi_money() {
            return mi_money;
        }

        public void setMi_money(String mi_money) {
            this.mi_money = mi_money;
        }

        public String getBirth() {
            return birth;
        }

        public void setBirth(String birth) {
            this.birth = birth;
        }

        public String getArea() {
            return area;
        }

        public void setArea(String area) {
            this.area = area;
        }

        public int getCard_count() {
            return card_count;
        }

        public void setCard_count(int card_count) {
            this.card_count = card_count;
        }

        public int getFans_num() {
            return fans_num;
        }

        public void setFans_num(int fans_num) {
            this.fans_num = fans_num;
        }

        public int getGz_num() {
            return gz_num;
        }

        public void setGz_num(int gz_num) {
            this.gz_num = gz_num;
        }

        public int getCircle_num() {
            return circle_num;
        }

        public void setCircle_num(int circle_num) {
            this.circle_num = circle_num;
        }

        public String getWeight() {
            return weight;
        }

        public void setWeight(String weight) {
            this.weight = weight;
        }

        public String getWeight_date() {
            return weight_date;
        }

        public void setWeight_date(String weight_date) {
            this.weight_date = weight_date;
        }

        public int getExercise_days() {
            return exercise_days;
        }

        public void setExercise_days(int exercise_days) {
            this.exercise_days = exercise_days;
        }

        public int getCalories() {
            return calories;
        }

        public void setCalories(int calories) {
            this.calories = calories;
        }

        public int getIs_index_name() {
            return is_index_name;
        }

        public void setIs_index_name(int is_index_name) {
            this.is_index_name = is_index_name;
        }

        /*
        * 获取带*号的手机号
        * */
        public String getHidTel(){
            return m_mobile.substring(0,3)+"****"+m_mobile.substring(7,11);
        }

        /*
        * 获取身体数据
        * */
        public String getBodys(){
            if("暂未数据".equals(weight)){
                return "体重 0kg";
            }else{
                return "体重 "+weight+"kg";
            }
        }
    }
}
